Stator Resistance Estimation for Electric Motors

ABSTRACT

A method of controlling an electric motor (motor) includes providing a processor having an associated memory storing a stator resistance (Rs) estimation (RSE) algorithm that is programmed to implement the RSE algorithm to execute steps including injecting a current waveform at an arbitrary frame of reference into the stator using a field-oriented-control (FOC) motor controller including an Id controller and an Iq controller, and measuring current and voltage values from the motor responsive to the injecting. The measured current and voltage values are then transformed into transformed current and voltage values in a d/q coordinate system. The transformed current and voltage values are low pass filtered to generate filtered d/q current and voltage values, and a value for Rs is estimated from the filtered d/q current and voltage values. The arbitrary frame of reference can be a time-varying frame of reference.

CROSS REFERENCE TO RELATED APPLICATIONS

This continuation application claims priority to U.S. patent application Ser. No. 14/486,303, filed Sep. 15, 2014, which application claims priority to and the benefit of Provisional Application No. 61/886,331, filed Oct. 3, 2013, both of which are herein incorporated by reference in their entirety.

FIELD

Disclosed embodiments relate to electric motors, and, more particularly, to determining a stator resistance for use by electric motor controllers for speed control of the electric motor.

BACKGROUND

An electric motor is a machine that converts electrical energy into mechanical energy. Electric motors include DC motors and AC motors, with AC motors increasingly being used.

AC motor is driven by 3-phase alternating current (AC) provided by an electric motor controller coupled to a 3-phase inverter. The AC motor includes an outside stationary stator having coils supplied with alternating current to produce a rotating magnetic field, and an inside rotor attached to the output shaft that is given a torque by the rotating field. The interaction of the rotor field and the stator field causes rotation of the rotor which can be used to perform work.

AC motors include induction or asynchronous motors which rely on a small difference in speed between the rotating magnetic field and the rotor to induce rotor current. A second AC motor type is the synchronous motor, which does not rely on induction and as a result can rotate at the supply frequency, or a sub-multiple of the supply frequency. The magnetic field on the rotor is either generated by a current delivered through slip rings or by a permanent magnet.

Stator resistance (Rs) is known to change with temperature, and stator winding temperature is known to increase as the average current through the stator winding increases. Thus, in a variable speed motor, when the drive voltage and current coupled into by the 3-phase inverter is increased or decreased, Rs is subject to change which in turn results in an unexpected demand in stator voltage. In order to achieve accurate motor control, accurate determination of Rs is needed. One method to determine Rs is by injecting DC current test signals into the stator windings and observing resulting variations in the phase currents and voltages of the motor.

SUMMARY

This Summary is provided to introduce a brief selection of disclosed concepts in a simplified form that are further described below in the Detailed Description including the drawings provided. This Summary is not intended to limit the claimed subject matter's scope.

Disclosed embodiments describe methods for determining the stator resistance (Rs) of electric motors, such as for AC motors (e.g., a Permanent Magnet (PM) motor, Interior Permanent Magnet (IPM) motor, or induction motor) or for brushless DC motors. Because the Rs value changes (increases) as the motor heats up due to various loading conditions, accurate dynamic determination of the Rs value is recognized to be needed to run estimators based on a motor model run by the motor controller with enough accuracy in order to operate the estimators successfully.

Disclosed embodiments include Rs estimation (RSE) algorithms that include injecting a low frequency current signal into the stator windings using a Field Oriented Control (FOC) controller including an Id controller for controlling direct (d) current and an Iq controller for controlling quadrature (q) current such that the FOC current controller can track the resulting current waveform(s), and then measuring the resulting current and voltage signals. Unlike known methods for determining (estimating) Rs, disclosed embodiments use an injection signal at an arbitrary frame of reference to determine Rs.

FOC is also called vector control which is known to be a variable frequency drive (VFD) control method that applies generally to all electric motors where there is access to the d axis component of the current (Id) to enable closing a loop on Id, which FOC does. FOC can control the output of three-phase AC electric motors by using two controllable VFD inverter output variables or can control the output of brushless DC motors. Disclosed RSE algorithms transform the measured current and voltage values into the d/q coordinate system followed by low pass filtering as a low frequency model approximation is used to generate filtered d/q current and voltage values, and then the Rs value is estimated from the d/q filtered current and voltage values.

BRIEF DESCRIPTION OF THE DRAWINGS

Reference will now be made to the accompanying drawings, which are not necessarily drawn to scale, wherein:

FIG. 1 is a depiction relating the angles of rotor coordinate systems (α/β) and (d/q) and an arbitrary reference frame (m,n) that is used herein to explain stator model manipulations that enable disclosed RSE algorithms, according to an example embodiment.

FIG. 2A depicts a block diagram depiction of a control system with run-time Rs estimation including a FOC controller, according to an example embodiment.

FIG. 2B is a block diagram depiction of an example microcontroller unit (MCU) chip implementing the FOC controller shown in FIG. 2A, according to an example embodiment.

FIG. 3 is a flow chart that shows steps for an example run-time RSE method, according to an example embodiment.

FIG. 4 is a plot of showing experimentally determined Rs tracking results.

DETAILED DESCRIPTION

Example embodiments are described with reference to the drawings, wherein like reference numerals are used to designate similar or equivalent elements. Illustrated ordering of acts or events should not be considered as limiting, as some acts or events may occur in different order and/or concurrently with other acts or events. Furthermore, some illustrated acts or events may not be required to implement a methodology in accordance with this disclosure.

Also, the terms “coupled to” or “couples with” (and the like) as used herein without further qualification are intended to describe either an indirect or direct electrical connection. Thus, if a first device “couples” to a second device, that connection can be through a direct electrical connection where there are only parasitics in the pathway, or through an indirect electrical connection via intervening items including other devices and connections. For indirect coupling, the intervening item generally does not modify the information of a signal but may adjust its current level, voltage level, and/or power level.

This Disclosure includes RSE algorithms that can dynamically estimate the Rs value of the stator windings of an electric motor while the motor is stationary, or while the motor is rotating. Disclosed RSE algorithms inject a current signal into the stator in an arbitrary reference frame, transform the measured current and voltage values into the d/q coordinate system, and then low pass filter the transformed current and voltage values to provide filtered d/q transformed measured current and voltage signals.

Unlike known methods for estimating Rs, disclosed embodiments use an injection signal at an arbitrary frame of reference to determine Rs. The injection signal can be Id current only, Iq current only, or a combination of Id and Id current to perform Rs estimation. When Iq current is used, an additional torque is introduced into the motor. However, it is recognized if the angle of the injection current signal is time-varying, then the average induced torque level over each period interval will be zero so that the current injection will essentially not change the torque production of the motor.

The derivation of an RSE algorithm described below is applied to a PM motor model. In the Examples section below relative to FIG. 4, an RSE algorithm applied to a PM motor evidences superior Rs tracking performance for experiments performed in the laboratory.

However, disclosed RSE algorithms are generic in nature for any motor that may be controlled by FOC, which as noted above also generally apply to IPM motors, injection motors and brushless DC motors as the same low frequency models disclosed herein can be used. FOC (or vector control) is known to generate a three-phase pulse width modulation (PWM) motor voltage output derived from a complex voltage vector to control a complex current vector derived from motor's three-phase motor stator current input through projections or rotations back and forth between the three-phase speed and time dependent system and these vectors' rotating reference-frame two-coordinate time invariant system. Such complex stator motor current space vector can be defined in a (d,q) coordinate system with orthogonal components along d (direct) and q (quadrature) axes such that field flux linkage component of current is aligned along the d axis and torque component of current is aligned along the q axis. The induction motor's d,q coordinate system can be superimposed to the motor's instantaneous (a,b,c) three-phase sinusoidal system. Components of the (d,q) system current vector allow conventional control such as proportional and integral (PI) control, as with a DC motor.

It is noted that the d/q reference frame used herein is the European notation. If the American notation for the d/q reference frame was used instead, the direction would be different. Although the math would be somewhat changed, the fundamental principles disclosed herein would still apply and the general current injection equation arrived at (see Equation 5 described below) stays the same, so that one having ordinary skill in the art given this Disclosure would be able to derive a disclosed RSE algorithm using American notation for the d/q reference frame without undue effort.

RSE Algorithm Derivation for d/q Reference Frame using European notation

The model of a PM motor with saliency can be shown to be of the following form:

$\begin{matrix} {\begin{bmatrix} V_{\alpha} \\ V_{\beta} \end{bmatrix} = {{R_{s}\begin{bmatrix} i_{\alpha} \\ i_{\beta} \end{bmatrix}} + {\quad{{\lambda_{m}{\frac{\theta_{r}}{t}\left\lbrack \begin{matrix} {- {\sin \left( \theta_{r} \right)}} \\ {\cos \left( \theta_{r} \right)} \end{matrix} \right\rbrack}} + {\quad{{\left\lbrack \begin{matrix} {L_{ls} + {\frac{3}{2}L_{0s}} - {\frac{3}{2}L_{2s}{\cos \left( {2\theta_{r}} \right)}}} & {{- \frac{3}{2}}L_{2s}{\sin \left( {2\theta_{r}} \right)}} \\ {{- \frac{3}{2}}L_{2s}{\sin \left( {2\theta_{r}} \right)}} & {L_{1s} + {\frac{3}{2}L_{0s}} + {\frac{3}{2}L_{2s}{\cos \left( {2\theta_{r}} \right)}}} \end{matrix} \right\rbrack \begin{bmatrix} \frac{i_{\alpha}}{t} \\ \frac{i_{\beta}}{t} \end{bmatrix}} + {\quad{\begin{bmatrix} {{- 3}L_{2s}\frac{\theta_{r}}{t}{\sin \left( {2\theta_{r}} \right)}} & {3L_{2s}\frac{\theta_{r}}{t}{\cos \left( {2\theta_{r}} \right)}} \\ {3L_{2s}\frac{\theta_{r}}{t}{\cos \left( {2\theta_{r}} \right)}} & {3L_{2s}\frac{\theta_{r}}{t}{\sin \left( {2\theta_{r}} \right)}} \end{bmatrix}\begin{bmatrix} i_{\alpha} \\ i_{\beta} \end{bmatrix}}}}}}}}} & {{Equation}\mspace{14mu} {set}\mspace{14mu} 1} \end{matrix}$

where: V_(α),V_(β) are the stator motor voltages in the orthogonal alpha (α)/(β) beta coordinate system; t_(α),t_(β) are the stator motor currents in the α/β coordinate system; R_(s) is the stator resistance; λ_(m) is the magnetizing flux linkage; θ_(r) is the electrical angle of the rotor; L_(ls) is the leakage inductance; L_(0s) is the 0^(th) order harmonic of the self-inductance; L_(2s) is the 2^(nd) order harmonic of the self-inductance;

$\frac{( \cdot )}{t}$

is the time rate of change of a given parameter.

Equation set 1 describes the PM motor dynamics in a static α/β coordinate system with respect to the stator. The first term to the right of the =sign (Rs×stator motor currents) is the voltage drop due to the ohmic resistance of the stator's windings, the second term (km, magnetizing flux linkage . . . ) is the voltage corresponding to the back EMF of the motor, the third term is the voltage corresponding to the total self-inductance, and the fourth (last) term is the voltage corresponding to the saliency of the motor.

A substitution to Equation set 1 lets

$L_{O} = {L_{\gamma \; s} + {\frac{3}{2}L_{Os}}}$ and ${\Delta \; L} = {\frac{3}{2}L_{2s}}$

yields Equation set 2 below:

$\begin{matrix} {\begin{bmatrix} V_{\alpha} \\ V_{\beta} \end{bmatrix} = {{R_{s}\begin{bmatrix} i_{\alpha} \\ i_{\beta} \end{bmatrix}} + {\lambda_{m}{\frac{\theta_{r}}{t}\left\lbrack \begin{matrix} {- {\sin \left( \theta_{r} \right)}} \\ {\cos \left( \theta_{r} \right)} \end{matrix} \right\rbrack}} + {\quad{{\begin{bmatrix} {L_{0} - {\Delta \; L\; {\cos \left( {2\theta_{r}} \right)}}} & {{- \Delta}\; L\; {\sin \left( {2\theta_{r}} \right)}} \\ {{- \Delta}\; L\; {\sin \left( {2\theta_{r}} \right)}} & {L_{0} + {\Delta \; L\; {\cos \left( {2\theta_{r}} \right)}}} \end{bmatrix}\left\lbrack \begin{matrix} \frac{i_{\alpha}}{t} \\ \frac{i_{\beta}}{t} \end{matrix} \right\rbrack} + {\quad{\begin{bmatrix} {{- 2}\Delta \; L\frac{\theta_{r}}{t}{\sin \left( {2\theta_{r}} \right)}} & {2\Delta \; L\frac{\theta_{r}}{t}{\cos \left( {2\theta_{r}} \right)}} \\ {2\Delta \; L\frac{\theta_{r}}{t}{\cos \left( {2\theta_{r}} \right)}} & {2\Delta \; L\frac{\theta_{r}}{t}{\sin \left( {2\theta_{r}} \right)}} \end{bmatrix}\begin{bmatrix} i_{\alpha} \\ i_{\beta} \end{bmatrix}}}}}}} & {{Equation}\mspace{14mu} {set}\mspace{14mu} 2} \end{matrix}$

Equation set 2 can be transformed from the α/β coordinate system into an arbitrary (m/n) orthogonal frame of reference using the following transformation:

$\begin{bmatrix} V_{m} \\ V_{n} \end{bmatrix} = {\begin{bmatrix} {\cos (\theta)} & {\sin (\theta)} \\ {- {\sin (\theta)}} & {\cos (\theta)} \end{bmatrix}\begin{bmatrix} V_{\alpha} \\ V_{\beta} \end{bmatrix}}$

FIG. 1 is a depiction 100 relating the angles of rotor coordinate systems (α/β) and (d/q) and an arbitrary reference frame (m,n) that is used herein to explain stator model manipulations that enable disclosed RSE algorithms, according to an example embodiment. θ represents the angle between the α/β coordinate system and the arbitrary m/n frame of reference shown in depiction 100. θ_(r) denotes the location of the d/q coordinate system relative to α/β coordinate system, where the d (direct) coordinate direction (shown as aligned with id) denotes the flux direction. Vm and Vn are the respective stator voltages in the arbitrary m/n coordinate system.

The transformed set of equations shown as Equation set 3 can be written as:

$\begin{matrix} {\begin{bmatrix} V_{m} \\ V_{n} \end{bmatrix} = {{R_{s}\begin{bmatrix} i_{m} \\ i_{n} \end{bmatrix}} + {\quad{{\lambda_{m}{\frac{\theta_{r}}{t}\begin{bmatrix} {- {\sin \left( {\theta_{r} - \theta} \right)}} \\ {\cos \left( {\theta_{r} - \theta} \right)} \end{bmatrix}}} + {\quad{\begin{bmatrix} {L_{0} - {\Delta \; L\; {\cos \left( {2\left( {\theta_{r} - \theta} \right)} \right)}}} & {\Delta \; L\; {\sin \left( {2\left( {\theta_{r} - \theta} \right)} \right)}} \\ {\Delta \; L\; {\sin \left( {2\left( {\theta_{r} - \theta} \right)} \right)}} & {L_{0} + {\Delta \; L\; {\cos \left( {2\left( {\theta_{r} - \theta} \right)} \right)}}} \end{bmatrix}{\quad{\left\lbrack \begin{matrix} \frac{i_{m}}{t} \\ \frac{i_{n}}{t} \end{matrix} \right\rbrack + {\quad{\left\lbrack \begin{matrix} {2\Delta \; L\frac{\theta_{r}}{t}{\sin \left( {2\left( {\theta_{r} - \theta} \right)} \right)}} & {2\Delta \; L\frac{\theta_{r}}{t}{\cos \left( {2\left( {\theta_{r} - \theta} \right)} \right)}} \\ {2\Delta \; L\frac{\theta_{r}}{t}{\cos \left( {2\left( {\theta_{r} - \theta} \right)} \right)}} & {2\Delta \; L\frac{\theta_{r}}{t}{\sin \left( {2\left( {\theta_{r} - \theta} \right)} \right)}} \end{matrix} \right\rbrack \left\lbrack \begin{matrix} i_{m} \\ i_{n} \end{matrix} \right\rbrack}}}}}}}}}} & {{Equation}\mspace{14mu} {set}\mspace{14mu} 3} \end{matrix}$

Solving for the time rate of change in the stator current (di/dt for m and n) as a function of the input voltage (Vm, Vn) yields Equation 4 below:

$\begin{matrix} {\begin{bmatrix} \frac{i_{m}}{t} \\ \frac{i_{n}}{t} \end{bmatrix} = {{\frac{1}{L_{0}^{2} - {\Delta \; L^{2}}}\begin{bmatrix} {L_{0} - {\Delta \; L\; {\cos \left( {2\left( {\theta_{r} - \theta} \right)} \right)}}} & {\Delta \; L\; {\sin \left( {2\left( {\theta_{r} - \theta} \right)} \right)}} \\ {\Delta \; L\; {\sin \left( {2\left( {\theta_{r} - \theta} \right)} \right)}} & {L_{0} + {\Delta \; L\; {\cos \left( {2\left( {\theta_{r} - \theta} \right)} \right)}}} \end{bmatrix}}\left\{ {\begin{bmatrix} V_{m} \\ V_{n} \end{bmatrix} - {R_{s}\begin{bmatrix} i_{m} \\ i_{n} \end{bmatrix}} - {\lambda_{m}{\frac{\theta_{r}}{t}\begin{bmatrix} {- {\sin \left( {\theta_{r} - \theta} \right)}} \\ {\cos \left( {\theta_{r} - \theta} \right)} \end{bmatrix}}} - \left. \quad{\begin{bmatrix} {2\Delta \; L\frac{\theta_{r}}{t}{\sin \left( {2\left( {\theta_{r} - \theta} \right)} \right)}} & {2\Delta \; L\frac{\theta_{r}}{t}{\cos \left( {2\left( {\theta_{r} - \theta} \right)} \right)}} \\ {2\Delta \; L\frac{\theta_{r}}{t}{\cos \left( {2\left( {\theta_{r} - \theta} \right)} \right)}} & {2\Delta \; L\frac{\theta_{r}}{t}{\sin \left( {2\left( {\theta_{r} - \theta} \right)} \right)}} \end{bmatrix}\begin{bmatrix} i_{m} \\ i_{m} \end{bmatrix}} \right\}} \right.}} & {{Equation}\mspace{14mu} 4} \end{matrix}$

It is recognized if only the low frequency components of the motor model reflected in Equation 4 are considered which can be obtained by low pass filtering the m, n current and voltage values, the motor dynamics simplify to the following form in Equation 5 below:

$\begin{matrix} {\begin{bmatrix} 0 \\ 0 \end{bmatrix} = {\begin{bmatrix} V_{m} \\ V_{n} \end{bmatrix} - {R_{s}\begin{bmatrix} i_{m} \\ i_{n} \end{bmatrix}}}} & {{Equation}\mspace{14mu} 5} \end{matrix}$

As a result, it can be seen from Equation 5 that Rs can be determined by injecting a current signal into the stator in one or both of the arbitrary directions (m and/or n) and evaluating the resulting current and voltage. For example, if the following constant current injection waveform in the m direction is commanded by a FOC controller in the m/n coordinate system:

$\begin{bmatrix} i_{m} \\ i_{n} \end{bmatrix} = \begin{bmatrix} I_{mag} \\ 0 \end{bmatrix}$

Since In=0, then Vn=0, and since i_(m)=I_(mag), Rs can be computed from Equation 5 which reduces to the following:

$R_{s} = \frac{V_{m}}{I_{mag}}$

It is noted that the angle θ that defines the location of the m direction reference frame (relative to the α coordinate direction, see FIG. 1) for the injected current is arbitrary, and θ can be time-varying which is recognized to enable more flexibility in the algorithm and improved sensitivity. For example, one can use a q current which might have larger signal to noise ratio (SNR) as compared to a d current. A θ time-varying injection current can be expressed in the d/q coordinate system using the new definition shown below with its id and iq components as follows:

$\begin{bmatrix} i_{d} \\ i_{q} \end{bmatrix} = \begin{bmatrix} {I_{mag}{\cos \left( \left( {\theta_{r} - \theta} \right) \right)}} \\ {{- I_{mag}}{\sin \left( \left( {\theta_{r} - \theta} \right) \right)}} \end{bmatrix}$

The definition above can be used as the input (Idq) to a FOC controller in the d/q coordinate system, such as shown a I_(dq) input to RSE algorithm block 215 of the motor controller (FOC controller) 220 shown in FIG. 2A described below. By taking this form, the resulting Iαβ current is as follows:

$\begin{bmatrix} i_{\alpha} \\ i_{\beta} \end{bmatrix} = \begin{bmatrix} {I_{mag}{\cos \left( \theta_{r} \right)}} \\ {{- I_{mag}}{\sin \left( \theta_{r} \right)}} \end{bmatrix}$

where the Iαβ current is seen to be a fixed amplitude current phasor rotating in time with period Or in the fixed α/β coordinate system.

Disclosed algorithms utilizing a time-varying angle θ for current injection are different from known DC injection methods that used a fixed injected current angle θ for injecting a DC current onto a given motor phase. Disclosed RSE algorithms are unlike known RSE algorithms that use a fixed current level (at a constant angle) which tend to generate additional torque in the motor, which can lead to inefficiency and/or unwanted torque disturbances. Moreover, as noted above, disclosed current injection using a time-varying injection signal enables the average induced torque level over a periodic interval to be zero, so that the current injection does not change the torque production of the motor.

FIG. 2A shows an example block diagram depiction of a FOC controlled motor system 200 having a disclosed RSE algorithm block 215 integrated within a FOC controller 220 that controls an AC motor 210 shown as a three-phase motor, according to an example embodiment. FOC controller 220 includes a non-volatile (NV) memory 272, such as read only memory (ROM) or static random access memory (SRAM), and a processor shown as a central processing unit (CPU) 275 that implements in software all the blocks shown in the unshaded (non-dotted) blocks shown in FIG. 2A. Hardware components of system 200 such as CPU 275 and NV 272 are shown in dotted blocks to distinguish them from components of system 200 implemented in software.

System 200 also includes analog circuitry 230 between the FOC controller 220 and the motor 210 comprising power driver 231, 3-phase inverter 232, voltage measurement circuits 233 a and current measurement circuits 233 b. The controller 220 includes analog-to-digital converters (ADC's) 243 a and 243 b coupled to receive outputs from the voltage measurement circuit 233 a shown as “voltage circuits” and current measurement circuit 233 b shown as “current circuits”, and a PWM driver 255 for driving the power driver 231.

The FOC controller 220 can be a sensorless FOC controller or can be a FOC controller having a sensor. FOC controllers having sensors can include encoders and sensors that measure position directly and then estimate the angular speed therefrom. FOC controller 220 can be implemented by a MCU, such as the MCU chip 260 shown in FIG. 2B described below. Circuitry other than a MCU can also be used to realize FOC controller 220 implementing a disclosed RSE algorithm 215, such as coprocessors or accelerators built using application-specific integrated circuit (ASIC) logic gates.

The inputs to the RSE algorithm block 215 are the measured current values from the stator of the motor 210 in the d/q coordinate system (I_(dq)), and the measured voltage values from the stator in the d/q coordinate system (V_(dq)). The outputs from the RSE algorithm block (RSE block) 215 are the injection currents in the d/q coordinate system which are added to the input of the Id current controller 252 and to the input of the Iq current controller 251 as shown in FIG. 2A. The estimated Rs value shown as {circumflex over (R)}_(s) output by RSE block 215 is coupled to an estimator block shown as Est block 245. {circumflex over (R)}_(s) is also shown coupled to an input of Id current controller 252 and to an input of the Iq current controller 251. The Idq current values are also input into the Est block 245, which generates an angle estimate {circumflex over (θ)} and angular velocity estimate {circumflex over (θ)}. The respective injection currents in the d/q coordinate system output by RSE block 215 are provided to inputs of the Iq controller 251 and Id controller 252 as additional references to the summing points shown.

The outputs of the Iq controller 251 and Id controller 252 are coupled to an iPark block 253 which outputs Vαβ that is coupled to SV generator block 254, where the output of SV generator block 254 is coupled to PWM driver 255. The SV generator computes the PWM time durations for each phase of the motor to produce the desired Vαβ voltage values.

As Iq controller 251 and Id controller 252 both receive {circumflex over (R)}_(s), they can dynamically adjust their gain as Rs changes to keep their open loop control bandwidth essentially the constant. Keeping the open loop control bandwidth of Iq controller 251 and Id controller 252 essentially constant is recognized to have the advantage of improving the stability of the FOC controller 220 through dynamic pole cancellation as described in more detail below.

It is noted that the voltage values V_(dq) is estimated from the measured phase voltages from the stator of the motor 210. The blocks shown as “Clarke” block 241 a and Clarke block 241 b perform the known Clarke transformation and the Park blocks 246 a, 246 b perform the known Park transformation. The Rs value is provided to Est block 245 which provides an estimate of θ shown as {circumflex over (θ)} with the hat denoting an estimated value (regarding θ, see θ in depiction 100 in FIG. 1) based on a motor model that is provided to the Park blocks 246 a and 246 b and {circumflex over (θ)} with a dot (.) above to denote estimate angular velocity which is provided to a speed controller 257.

FIG. 2B is a block diagram depiction of an example MCU chip 260 formed in and on a substrate 105 implementing the FOC controller 220 shown in FIG. 2A, according to an example embodiment. Although not shown, the MCU chip 260 generally includes other integrated circuit modules, for example, a Universal Serial Bus (USB) controller and a transceiver. MCU chip 260 is shown including NV memory 272, volatile data memory 273, digital I/O (interface) 274, CPU 275, and clock (or timer) 276. Core for implementing RSE algorithm block 215 is shown as block 215′ stored in NV memory 272. MCU chip 260 is also shown including a digital data bus 278 and an address bus 279.

MCU chip 260 is shown as a monolithic integrated circuit (IC). The substrate 105 may comprise silicon, such as bulk silicon or silicon epi on a bulk silicon substrate. The substrate 105 may also generally comprise other materials, such as elementary semiconductors besides silicon including germanium. Substrate 105 may also generally comprise a compound semiconductor.

A flowchart of an example run-time RSE algorithm for implementing a method 300 of controlling an electric motor is shown in FIG. 3. Step 301 comprises providing a FOC controller including a processor having an associated memory storing a RSE algorithm, where the processor is programmed to implement the RSE algorithm to execute a series of steps. Step 302 comprises injecting a current waveform into the stator of the motor 210 using the FOC controller. Step 303 comprises measuring the current and voltage values responsive to the injected current waveform. Step 304 comprises transforming the measured current and voltage values into the d/q coordinate system. As noted above, the d/q reference frame used herein is the European notation and if the American notation for the d/q reference frame was used instead, the fundamental principles disclosed herein would still apply.

Step 305 comprises lowpass filtering the d/q coordinate transformed current and voltage values. Step 306 comprises determining an estimate for the Rs value ({circumflex over (R)}_(s)) from the filtered d/q current and voltage values.

As described above, {circumflex over (R)}_(s) can be used for improving motor operation including improving the efficiency during operation of the motor. Step 307 can comprise coupling {circumflex over (R)}_(s) to an input of an Id controller and Iq controller (as shown in FIG. 2A as 252 and 251 respectively), wherein each of the Id controller and Iq controller include an automatic gain adjustment algorithm configured to adjust their open loop gain as a function of {circumflex over (R)}_(s), so that as {circumflex over (R)}_(s) changes the automatic gain adjustment algorithm changes the open loop gain to reduce a change in open loop bandwidth during operation of the motor.

The Id controller 252 and Iq controller 251 can control an Rs/Ls circuit (motor phases), which is a single pole system. A relatively straightforward way to control such a circuit is to have pole cancellation, and to have a single parameter that sets the bandwidth of the controller. If Rs is fixed, then the pole cancellation of Rs/Ls can be calculated once. However, if Rs changes due to temperature during motor operation, then Rs/Ls changes with temperature so that the pole changes with temperature. If this pole frequency changes too much, it can lead to the Id controller 252 and Iq controller 251 undesirably oscillating. With {circumflex over (R)}_(s) being updated by a FOC controller running a disclosed RSE algorithm, the current controller gain can be dynamically adjusted as {circumflex over (R)}_(s) changes to cancel the Rs/Ls pole, thus providing improved stability for disclosed FOC controllers.

Examples

Disclosed embodiments are further illustrated by the following specific Examples, which should not be construed as limiting the scope or content of this Disclosure in any way.

FIG. shows experimental results using a FOC controller implementing a disclosed RSE algorithm tracking the Rs in a PM motor for approximately 5 minutes (x-axis) as the motor heated up during a loaded operating condition. The FOC controller implementing a disclosed RSE algorithm is seen to be able to track Rs in a stable manner during its rise and the steady state value of Rs of about 3.45 ohms is seen to be found for this particular test. The results can be seen to converge the new steady-state Rs (at the equilibrium operating temperature of the motor) value of about 3.45 ohms.

Benefits of disclosed RSE algorithms include a current injection that can be configured to not change the torque production of the motor. Rs estimation can be performed while the motor is stationary or is spinning, and does not require any added external circuitry or other components. Moreover, as noted above disclosed RSE algorithms can be applied to a variety of AC motors including PM, IPM and ACI motors, as well as brushless DC motors.

Disclosed RSE algorithms can be implemented for a variety of FOC-based motor controllers, for example for the Texas Instruments' INSTASPIN-FOC sensorless motor control technology, such as for PICCOLO and POTENZA MCU chip-based motor controllers. In the case of INSTASPIN-FOC technology and related technology, code for disclosed RSE algorithms can be embedded in the ROM of the MCU chip (see NV memory 272 in FIG. 2B), such as to accelerate motor control development while improving efficiency. Motor control applications include for washing machines, compressors, pumps, fans, electric bicycles, tools, treadmills, compact drives, sewing and textile machines, lifts and hobby motors.

Those skilled in the art to which this disclosure relates will appreciate that many other embodiments and variations of embodiments are possible within the scope of the claimed invention, and further additions, deletions, substitutions and modifications may be made to the described embodiments without departing from the scope of this disclosure. 

1. A method of controlling an electric motor (motor), including a rotor and a stator, comprising: providing a processor having an associated memory storing a stator resistance (Rs) estimation (RSE) algorithm, said processor programmed to implement said RSE algorithm to execute: injecting a current waveform at an arbitrary frame of reference into said stator using a field-oriented-control motor controller (FOC controller) including an Id controller for controlling direct (d) current and an Iq controller for controlling quadrature (q) current; measuring current and voltage values from said motor responsive to said injecting; transforming said measured current and voltage values into transformed current and voltage values in d/q coordinate system; low pass filtering said transformed current and voltage values to generate filtered d/q current and voltage values, and estimating a value for said Rs ({circumflex over (R)}_(s)) from said filtered d/q current and voltage values.
 2. The method of claim 1, wherein said RSE algorithm executes while said motor is spinning.
 3. The method of claim 1, wherein said processor and said associated memory are both provided on a microcontroller unit (MCU) chip.
 4. The method of claim 1, wherein said motor comprises a permanent magnet (PM) motor, an interior permanent magnet (IPM) motor, an induction motor, or a brushless DC motor.
 5. A microcontroller unit (MCU) chip, comprising: a substrate having the following formed in or thereon configured to realize a field-oriented-control (FOC) motor controller (FOC controller) including: at least one analog-to-digital converter (ADC); a pulse-width modulation (PWM) driver; a first non-volatile program memory including a stator resistance (Rs) estimation (RSE) algorithm for an electric motor (motor) stored therein; an Id controller for controlling direct (d) current and an Iq controller for controlling quadrature (q) current; a digital I/O (interface); a central processing unit (CPU); a clock, and a digital data bus and an address bus for coupling together said ADC, said first non-volatile program memory, said digital I/O (interface), said CPU, and said clock, wherein said CPU implements said RSE algorithm which executes: triggering injecting a current waveform at an arbitrary frame of reference into a stator of said motor using said FOC controller coupled to drive said PWM driver; transforming received measured current and voltage values from said motor responsive to said injecting into transformed d/q current and voltage values in a d/q coordinate system; low pass filtering said transformed d/q current and voltage values to generate filtered current and voltage values, and estimating a value for stator resistance Rs ({circumflex over (R)}_(s)) for said motor from said filtered current and voltage values.
 6. A computer program product, comprising: a non-transitory data storage medium that includes program instructions for a stator resistance (Rs) estimation (RSE) algorithm executable by a processor to enable said processor to execute a method of controlling an electric motor (motor) including a rotor and a stator, said computer program product comprising: code for injecting a current waveform at an arbitrary frame of reference into said stator using a field-oriented-control motor controller (FOC controller) including an Id controller for controlling direct (d) current and an Iq controller for controlling quadrature (q) current; code for measuring current and voltage values from said motor responsive to said injecting; code for transforming said measured current and voltage values into transformed current and voltage values in a d/q coordinate system; code for low-pass filtering said transformed current and voltage values to generate filtered d/q current and voltage values, and code for estimating a value for said Rs ({circumflex over (R)}_(s)) from said filtered d/q current and voltage values.
 7. The computer program product of claim 6, wherein said wherein said RSE algorithm executes while said motor is spinning. 